newtons method for solving system of nonlinear equations Matlab code